<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>兑换审核</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">

    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>

    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css" />
    <link rel="stylesheet" href="/css/input_tags.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/js/need/verfont.css" />
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <!--表单校验插件-->
    <link rel="stylesheet" href="/css/bootstrapValidator.min.css" />

    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/csd/customerManager/productExchange.css" type="text/css"/>
    <link rel="stylesheet" href="/css/csd/customerManager/exchangeApproval.css" type="text/css"/>
</head>
<body>
<div class="container-fluid" id="productExchange">
    <div class="card">
        <div class="card-header">
            <h1>兑换审核</h1>
        </div>
        <div>
            <ul class="new-tabs">
                <!-- 兑换明细  兑换规则设置-->
                <input type="hidden" id="exchangeType" name="dateType"/>
                <li class="nav-item active" style="margin-left:24px">
                    <a href="#productExchangeTab" data-toggle="tab"  id="exchangeInspect">产品兑换审核</a>
                </li>
                <li class="nav-item">
                    <a href="#exchangeDetail" data-toggle="tab"  id="exchangeRule">会员权益兑换审核</a>
                </li>
            </ul>
            <main class="tab-content">
                <div role="tabpanel" id="productExchangeTab" class="tab-pane card-body active">
                    <table id="productExchangeDetailsTable"></table>
                </div>
                <div role="tabpanel" id="exchangeDetail" class="tab-pane card-body">
                    <!--兑换审批-->
                    <div class="row content-action">
                        <div class="col-lg-7 col-md-6 col-sm-6 col-xs-12">
                            <!-- 全部 本周 本月 上月 自定义-->
                            <div class="time-search pull-left">
                                <input type="hidden" id="dateType" name="dateType"/>
                                <div id="all" class="timeBtn active-second" onclick="selectTime('all')">全部</div>
                                <div id="customize" class="timeBtn" onclick="selectTime('customize')">自定义</div>
                            </div>
                            <div class="custom-input pull-left" id="customInput" style="margin-left: 10px;width: 410px;">
                                <div class="input-group">
                                    <input type="text" class="form-control datepicker" placeholder="请选择兑换时间" id="arriveTimeStart">
                                    <span class="input-group-addon">至</span>
                                    <input type="text" class="form-control datepicker" placeholder="请选择兑换时间" id="arriveTimeEnd">
                                    <div class="input-group-btn">
                                        <button type="button" class="btn btn-default" id="customDateBtn" onClick="exchangeDetailsList()">确定</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-5 col-md-6 col-sm-6 col-xs-12">
                            <div class="pull-right">
                                <div class="min-search pull-left">
                                    <input class="form-control" type="text" placeholder="请输入规则标题" id="ruleTitle" name="ruleTitle">
                                    <button class="btn btn-primary" type="button" onclick="exchangeDetailsList()"><i class="mdi mdi-magnify"></i><span>搜索</span></button>
                                </div>
                                <div id="advanceFilterContainer">
                                    <button class="btn btn-default btn-senior" id="openFilter" onClick="showToggle()"><i class="mdi mdi-sort-variant"></i>高级筛选</button>
                                    <button class="btn btn-default btn-senior" id="closeFilter" onClick="showToggle()"><i class="mdi mdi-close"></i>关闭筛选</button>
                                    <div id="filterFilesContainer" class="clearFix">
                                        <div id="filterFiles" class="clearFix">
                                            <!--                                    <i class="trangle"></i>-->
                                            <h4>高级筛选</h4>
                                            <div class="clearFix filterContent">
                                                <div>


                                                </div>
                                                <div id="btnsContainerDetail" class="clearFix">
                                                    <button class="btn btn-default" id="btn-reset">重置</button>
                                                    <button class="btn btn-primary" type="button" id="btn-search" onClick="exchangeDetailsList()">
                                                        <i class="mdi mdi-magnify"></i><span>搜索</span>
                                                    </button>
                                                </div>
                                            </div>
                                        </div>

                                    </div>
                                </div>

                            </div>
                        </div>
                        <div class="productDetailsFormCon">
                            <table id="exchangeDetailsTable"></table>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>
</div>
<!--产品兑换审核-->
<!--<div class="modal fade" tabindex="-1" role="dialog" id="productApprovalModal">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-body clearFix" style="min-height: 200px;">
                <main id="productExchangeApproval" class="clearFix" style="padding-left:30px;">
                    <form class="form-horizontal" id="productApprovalForm">
                        <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label pull-left">订单编号:</label>
                            <div class="form-content">
                                <span id="orderNumber"></span>
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label pull-left">合同编号:</label>
                            <div class="form-content">
                                <span id="contractNumber"></span>
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <label class="control-label pull-left">产品兑换:</label>
                            <div class="form-content">
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <label class="control-label pull-left">兑换的产品:</label>
                            <div class="form-content">
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <label class="control-label pull-left label-required">审核备注:</label>
                            <div class="form-content">
                                <textarea id="productRemarks" name="remarks" class="form-control" rows="5" placeholder="请输入备注"></textarea>
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <label class="control-label pull-left label-required">审核结果:</label>
                            <div class="form-content">
                                <div class="form-check form-check-inline">
                                    <input class="form-check-input" type="radio" name="productApprovalResult" id="inlineRadio3" value="0">
                                    <label class="form-check-label" for="inlineRadio3">通过</label>
                                </div>
                                <div class="form-check form-check-inline">
                                    <input class="form-check-input" type="radio" name="productApprovalResult" id="inlineRadio4" value="2">
                                    <label class="form-check-label" for="inlineRadio4">不通过</label>
                                </div>
                            </div>
                        </div>
                    </form>
                </main>
                <div id='productBtnsContainer' class="pull-right">
                    <div class="btn btn-primary"style="margin-right: 20px;">提交</div>
                    <div class="btn btn-default" data-dismiss="modal">取消</div>
                </div>
            </div>
        </div>
    </div>
</div>-->
<!--会员权益兑换审核-->
<div class="modal fade" tabindex="-1" role="dialog" id="approvalModal">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-body" style="min-height: 200px;">
                <main id="exchangeApproval" class="clearFix">
                    <header>基本信息</header>
                    <form class="form-horizontal clearFix">
                        <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label pull-left">规则标题:</label>
                            <div class="form-content">
                                <span id="ruleTitleText"></span>
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label pull-left">申请人:</label>
                            <div class="form-content">
                                <span id="userName"></span>
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label pull-left">所属分公司:</label>
                            <div class="form-content">
                                <span id="companyName"></span>
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label pull-left">会员卡号:</label>
                            <div class="form-content">
                                <span id="memberCardNumber"></span>
                            </div>
                        </div>
                        <div class="form-group clearFixcol-lg-6 col-md-6 col-sm-6 col-xs-12 col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label pull-left">兑换类型:</label>
                            <div class="form-content">
                                <span id="changeCourseType"></span>
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label pull-left">相关附件:</label>
                            <div class="form-content">
                                <a href="javascript:;" style="line-height:36px;margin-left:5px;" onclick="showFile(1);">查看</a>
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12" id="exchangeTableContainer">
                            <label class="control-label pull-left">兑换列表:</label>
                            <div class="form-content">
                                <table id="exchangeTable"></table>
                            </div>
                        </div>
                    </form>
                    <header>审核情况</header>
                    <form class="form-horizontal" id="approvalForm">
                        <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <label class="control-label pull-left label-required">审核备注:</label>
                            <div class="form-content">
                                <textarea id="remarks" name="remarks" class="form-control" rows="5" placeholder="请输入备注"></textarea>
                            </div>
                        </div>
                        <div class="form-group clearFix col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <label class="control-label pull-left label-required">审核结果:</label>
                            <div class="form-content">
                                <div class="form-check form-check-inline">
                                    <input class="form-check-input" type="radio" name="approvalResult" id="inlineRadio1" value="0">
                                    <label class="form-check-label" for="inlineRadio1">通过</label>
                                </div>
                                <div class="form-check form-check-inline">
                                    <input class="form-check-input" type="radio" name="approvalResult" id="inlineRadio2" value="2">
                                    <label class="form-check-label" for="inlineRadio2">不通过</label>
                                </div>
                            </div>
                        </div>
                    </form>
                </main>
                <div id='btnsContainer'>
                    <div class="btn btn-primary"style="margin-right: 20px;" onclick="submitApproval()">提交</div>
                    <div class="btn btn-default" data-dismiss="modal">取消</div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 附件预览 -->
<div class="modal fade bs-example-modal-lg fileModal" tabindex="-1" role="dialog" id="fileModal">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4>附件预览</h4>
            </div>
            <div class="modal-body">
                <iframe src="" frameborder="0" id="fileIframe"></iframe>
            </div>
        </div>
    </div>
</div>
</body>

<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min-1.18.3.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script src="/js/crm/common/input-tag.js"></script>
<script src="/js/crm/common/city.js"></script>
<script src="/js/crm/common/common.js"></script>
<!--table固定列-->
<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<!-- 拖动 -->
<script src="/js/bootstrap-table/extensions/resizable/bootstrap-table-resizable.min.js"></script>
<script src="/js/crm/common/colResizable-1.6.min.js"></script>

<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<script src="/js/verSelect.2.0.js"></script>
<!--图片查看-->
<script type="text/javascript" src="/js/viewer.js"></script>
<script type="text/javascript" src="/js/jquery-viewer.js"></script>
<!--表单校验-->
<script type="text/javascript" src="/js/bootstrapValidator.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<link rel="stylesheet" href="/css/viewer.css">
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/csd/customerManager/exchangeApproval.js"></script>
</html>
